|
![](/i/fill.gif) |
"Mark Weyer" <wey### [at] informatik uni-freiburg de> wrote in message
news:3EB### [at] informatik uni-freiburg de...
> > ultimately POV-ray needs something like
> >
> > #declare F = function(x)
> > { Cube[int((x-X0)/StepX)] }
>
> I might get killed for proposing something so inefficient, but:
> (I only treat one-dimensional array, the rest (including optimization
> correction of errors, introduction of interpolation,...) I leave to you)
>
> #declare F = function(x)
> {
> #local I=1;
> #while (I<Max)
>
> select (x-X0-I*StepX, Cube[I-1],
>
> #local I=I+1;
> #end
>
> Cube[Max-1]
>
> #local I=1;
> #while (I<Max)
>
> )
>
> #local I=I+1:
> #end
> }
Although it will need about 40 selects in a row, it may be a solution.
I will need probably about 25 of them, so I hope it is not to much
for POV-ray.
Thank you for this possibility!
Jaap Frank
Post a reply to this message
|
![](/i/fill.gif) |